package com.example.demo.Controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2023-01-06
 * Time: 22:52
 */

@RestController
public class WebController2 {
    @RequestMapping("/calc")
    public Object calc(Integer num1,Integer num2) {
        int sum = num1 + num2;
        return "<h1>num1 + num2 = "+ sum + "</h1>";
    }
}
